Settings_ICA.m 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % ADVANCED SETTINGS FOR ICA DECOMPOSITION: %
  3. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. %
  5. % This settings file will be read by the ICAcleanerGUI.
  6. % - Settings here will be applied to ICA decompositions.
  7. %
  8. % Usage:
  9. % a) Settings under "DO NOT EDIT" are handled by [MEG]PLS. Do not alter these.
  10. % b) Change other values as needed. See "help" command for FieldTrip section.
  11. % c) Optional settings can be uncommented and specified.
  12. %
  13. function [cfgResampleICA, cfgICA] = Settings_ICA
  14. %--- "FT_RESAMPLEDATA" SETTINGS: ---%
  15. %-----------------------------------%
  16. % GENERAL SETTINGS:
  17. cfgResampleICA.resamplefs = 300; % Sampling rate of data for ICA decomposition.
  18. cfgResampleICA.trials = 'all';
  19. cfgResampleICA.detrend = 'no'; % Disable if you demeaned / detrended during preprocessing.
  20. cfgResampleICA.demean = 'no'; % Enable only if you didn't demean during preprocessing.
  21. cfgResampleICA.feedback = 'text';
  22. % OPTIONAL IF SPECIFYING TIME-AXIS INSTEAD:
  23. % cfgResampleICA.time
  24. % cfgResampleICA.method
  25. %--- "FT_COMPONENTANALYSIS" SETTINGS: ---%
  26. %----------------------------------------%
  27. % DO NOT EDIT:
  28. cfgICA.channel = 'MEG';
  29. %cfgICA.unmixing
  30. %cfgICA.topolabel
  31. % GENERAL SETTINGS:
  32. cfgICA.method = 'runica'; % See "help ft_componentanalysis" for list of other options.
  33. cfgICA.numcomponent = 'all'; % Warning: binica only works on linux (use runica for windows).
  34. cfgICA.trials = 'all';
  35. cfgICA.demean = 'no'; % Set to 'yes' if you didn't demean during preprocessing.
  36. % NOTE: Below are optional FieldTrip & EEGLAB settings for each method.
  37. % - For more information, see EEGLAB help functions for respective methods.
  38. % OPTIONAL SETTINGS FOR BINICA:
  39. % cfgICA.binica.extended
  40. % cfgICA.binica.pca
  41. % cfgICA.binica.sphering
  42. % cfgICA.binica.lrate
  43. % cfgICA.binica.blocksize
  44. % cfgICA.binica.maxsteps
  45. % cfgICA.binica.stop
  46. % cfgICA.binica.weightsin
  47. % cfgICA.binica.verbose
  48. % cfgICA.binica.filenum
  49. % cfgICA.binica.posact
  50. % cfgICA.binica.annealstep
  51. % cfgICA.binica.annealdeg
  52. % cfgICA.binica.bias
  53. % cfgICA.binica.momentum
  54. % OPTIONAL SETTINGS FOR RUNICA:
  55. % cfgICA.runica.extended
  56. % cfgICA.runica.pca
  57. % cfgICA.runica.sphering
  58. % cfgICA.runica.weights
  59. % cfgICA.runica.lrate
  60. % cfgICA.runica.block
  61. % cfgICA.runica.anneal
  62. % cfgICA.runica.annealdeg
  63. % cfgICA.runica.stop
  64. % cfgICA.runica.maxsteps
  65. % cfgICA.runica.bias
  66. % cfgICA.runica.momentum
  67. % cfgICA.runica.specgram
  68. % cfgICA.runica.posact
  69. % cfgICA.runica.verbose
  70. % cfgICA.runica.logfile
  71. % cfgICA.runica.interput
  72. % OPTIONAL SETTINGS FOR FASTICA:
  73. % cfgICA.fastica.approach
  74. % cfgICA.fastica.numOfIC
  75. % cfgICA.fastica.g
  76. % cfgICA.fastica.finetune
  77. % cfgICA.fastica.a1
  78. % cfgICA.fastica.a2
  79. % cfgICA.fastica.mu
  80. % cfgICA.fastica.stabilization
  81. % cfgICA.fastica.epsilon
  82. % cfgICA.fastica.maxNumIterations
  83. % cfgICA.fastica.maxFinetune
  84. % cfgICA.fastica.sampleSize
  85. % cfgICA.fastica.initGuess
  86. % cfgICA.fastica.verbose
  87. % cfgICA.fastica.displayMode
  88. % cfgICA.fastica.displayInterval
  89. % cfgICA.fastica.firstEig
  90. % cfgICA.fastica.lastEig
  91. % cfgICA.fastica.interactivePCA
  92. % cfgICA.fastica.pcaE
  93. % cfgICA.fastica.pcaD
  94. % cfgICA.fastica.whiteSig
  95. % cfgICA.fastica.whiteMat
  96. % cfgICA.fastica.dewhiteMat
  97. % cfgICA.fastica.only
  98. % OPTIONAL SETTINGS FOR ICASSO (See "help ICASSOEST"):
  99. % Runs FastICA a specified number of times and provides info about component stability.
  100. % cfgICA.icasso.mode
  101. % cfgICA.icasso.Niter
  102. % OPTIONAL SETTINGS FOR DDS (See "help dds_create_state"):
  103. % cfgICA.dss.denf.function
  104. % cfgICA.dss.denf.params
  105. % OPTIONAL SETTINGS FOR SOBI:
  106. % cfgICA.sobi.n_sources
  107. % cfgICA.sobi.p_correlations
  108. % OPTIONAL SETTINGS FOR CSP (COMMON-SPATIAL PATTERNS):
  109. % cfgICA.csp.classlabels = vector that assigns a trial to class 1 or 2.
  110. % cfgICA.csp.numfilters = the number of spatial filters to use (default: 6).
  111. % SEED FOR RANDOM NUMBERS:
  112. % cfgICA.randomseed = integer seed value of user's choice
  113. % cfgICA.randomseed = comp.cfg.callinfo.randomseed (from previous call)